import request from '@/request/request.js'
export default {
	// 密码登录
	getUserInfo(data) {
		return request('/get_userinfo', 'POST', data)
	},
	// 退出登录
	logout(data) {
		return request('/student/user/logout', 'POST',data)
	},
	// 获取配置信息
	getConfig(data) {
		return request('/student/user/configInfo', 'GET', data)
	},
	// 获取sessionkey
	getSessionKey(code){
		return request('/get_sessionkey','POST',code)
	},
	// 获取解析出的手机号
	getPhone(data){
		return request('/get_phone','POST',data)
	},
	//给后台返回用户登录授权后的信息
	setUserInfo(data){
		return request('/login','POST',data)
	},
	//判断用户是否登录
	isLogin(data){
		return request('/is_login','POST',data)
	},
	//实名认证
	verify(data){
		return request('/user_verify','POST',data)
	},
	// 获取藏品信息
	getCollections(data){
		return request('/getCollection','POST',data)
	},
	/* 首页 */
	//首页列表
	getIndex(data){
		return request('/nft_index_new','POST',data)
	},
	//精彩推荐
	getRecommend(data){
		return request('/activity_recommend','POST',data)
	},
	//发行预告
	getAdvanceNotice(data){
		return request('/activity_trailer','POST',data)
	},
/*  */
	// 藏品详情
	getCollectionsDetail(data){
		return request('/collection_detail','POST',data)
	},
	//活动详情
	getActivityDetail(data){
		return request('/activity_detail','POST',data)
	},
	// 预约活动
	orderActivity(data){
		return request('/activity_appointment','POST',data)
	},
	// 领取藏品
	receiveCollection(data){
		return request('/receive_collection','POST',data)
	},
	// 关注藏品
	advanceCollection(data){
		return request('/focus_activity','POST',data)
	},
	// 取消关注
	cancelFocus(data){
		return request('/cancel_focus','POST',data)
	},
	// 我的藏品
	myCollection(data){
		return request('/my_collection','POST',data)
	},
	//我的关注
	myFollow(data){
		return request('/follow_list','POST',data)
	},
	//我的藏品详情
	myCollectionDetail(data){
		return request('/collection_detail_my','POST',data)
	},
	//消息列表
	getNotice(data){
		return request('/news_list','POST',data)
	},
	//消息详情
	getNoticeDetail(data){
		return request('/news_detail','POST',data)
	},
	//修改昵称
	editUsername(data){
		return request('/change_userinfo','POST',data)
	}
}

